import { defHttp } from '/@/utils/http/axios';
import { GetUserInfoModel } from './model/userModel';

enum Api {
  getConfig = '/inyaa-admin/config/findAll',
  saveConfig = '/inyaa-admin/config/save',
}

export function getConfig(type: number) {
  return defHttp.get<GetUserInfoModel>({ url: Api.getConfig, params: { type: type } });
}

export function saveConfig(type) {
  return defHttp.post<GetUserInfoModel>({ url: Api.saveConfig, params: type });
}
